from django.db import models
from meiduo.utils.models import BASEModel
# Create your models here.


class OAuthQQUser(BASEModel):

    user = models.ForeignKey('users.User', on_delete=models.CASCADE)    # cascade级联
    openid = models.CharField(db_index=True, max_length=64)       # db_index设为索引值

    class Meta:

        db_table = 'tb_oauth'
        verbose_name = 'QQ用户'
        verbose_name_plural = verbose_name
